<div id='nbg' style='position: fixed; left: 0px; top: 0px;'>
</div>


<div id='login' style='position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 20; margin-top: 64px;'>
  <div id='logo' style='margin-left: auto; margin-right: auto; text-align: center; width: 450px; height: 115px; margin-top: 50px;'>
   <div style='position: absolute; z-index: 999999;' id='logoih'>
    
   </div>
  </div>
  
  <div id='lastscore' style="margin-left: auto; margin-right: auto; text-align: center; margin-top: 44px; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 15px; color: #FFFFFF;">
   &nbsp;
  </div>
  
  <div id='tips' class='nsi' style="margin-left: auto; margin-right: auto; width: 360px; height: 30px; color: #8068C0; text-align: center; font-size: 14px; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; opacity: 0;">
   &nbsp;
  </div>
  
  <div style='margin-left: auto; margin-right: auto; text-align: center;'>
   <div class='taho' id='nick_holder' style='width: 244px; margin-top: 34px; background: #4C447c; box-shadow: 0px 6px 50px rgba(0,0,0,1); opacity: 0;'>
    <input class='sumsginp' id='nick' style='width: 220px; height: 24px;' placeholder="Nickname" maxlength=24></input>
   </div>
   <div id='victory_holder' style='display: none; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size: 18px; color: #FFFFFF; margin-top: 22px;'>
    <div style='font-size: 24px; margin-top: 12px;'><b>You are the new champion!</b></div>
    <div style='opacity: .6; margin-top: 12px;'>Enter a victory message that you would like all other players to see!</div>
    <div class='taho' id='victory_bg' style='width: 444px; margin-top: 50px; background: #00A4CF; box-shadow: 0px 0px 50px rgba(64,64,255,1);'>
     <input class='sumsginp' id='victory' style='width: 420px; height: 24px; color:#FFFFFF;' placeholder="Your message" maxlength=140></input>
    </div>
   </div>
  </div>
  
  <div id='playh' style='margin-left: auto; margin-right: auto; text-align: center;'></div>
  <div id='saveh' style='margin-left: auto; margin-right: auto; text-align: center; display: none;'></div>
  
</div>



<div id='smh' style='opacity: 0; position: fixed; left: 0px; top: 0px; z-index: 21;'>
 <img id='cstx' class='nsi' border=0 draggable=false width=225 height=36 style='position: fixed; bottom: 30px; opacity: .4; z-index: 50; display: none;'>
 
 <div id='fbh' style='position: fixed; bottom: 20px; z-index: 50;'>
  <a class='btn btnt' draggable="false" id='fb' style='width:80px; height:74px;' href='#'>
   <img class='nsi' border=0 draggable=false width=80 height=74 src='/assets/img/facebook.png'>
  </a>
 </div>
 
 <div id='twth' style='position: fixed; bottom: 20px; z-index: 50;'>
  <a class='btn btnt' draggable="false" id='twt' style='width:80px; height:74px;' href='#'>
   <img class='nsi' border=0 draggable=false width=80 height=74 src='/assets/img/twitter3.png'>
  </a>
 </div>
 
 
 <div id='cskh' style='position: fixed; left: 20px; bottom: 16px; z-index: 50; display: none;'>
  <a class='btn btnt' draggable="false" id='csk' style='width:95px; height:89px;' href='#'>
   <img class='nsi' border=0 draggable=false width=95 height=89 src='/assets/img/changeskin2.png'>
  </a>
 </div>

 
 <div id='grqh' style='position: fixed; right: 20px; top: 16px; z-index: 50;'>
  <a class='btn btnt' draggable="false" id='grq' style='width:90px; height:87px;' href='#'>
   <img id='grqi' class='nsi' border=0 draggable=false width=90 height=87 src='/assets/img/highquality.png'>
  </a>
 </div>


 <div id='plq' style='position: fixed; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size: 13px; color: #408040; right: 10px; top: 10px; width: 260px; height: 400px; text-align: right;'>
  <a class='lq' href='http://poal.me/klpijd' target='_blank'></a>
 </div>


 <div id='clq' style='position: fixed; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size: 12px; left: 10px; bottom: 10px; width: 260px; height: 20px; text-align: center; color: #404880;'>
  <a class='lq2' href='https://github.com/PlitherProject/Plither' target='_blank'>GitHub</a>
 </div>

</div>


<div id='pskh' style='display: none; opacity: 0; position: fixed; z-index: 52;'>
 <a class='btn btnt' draggable="false" id='psk' style='width:87px; height:88px;' href='#'>
  <img class='nsi' border=0 draggable=false width=87 height=88 src='/assets/img/prev3.png'>
 </a>
</div>

<div id='nskh' style='display: none; opacity: 0; position: fixed; z-index: 52;'>
 <a class='btn btnt' draggable="false" id='nsk' style='width:87px; height:88px;' href='#'>
  <img class='nsi' border=0 draggable=false width=87 height=88 src='/assets/img/next3.png'>
 </a>
</div>

<script type='text/javascript'>
// Show Skins
localStorage.edttsg = "1";

if (!window.console) window.console = {};
if (!window.console.log) window.console.log = function (a) { };

if (((window.location.href+'').toLowerCase()).indexOf('https:') == 0) {
 window.location = 'http:'+window.location.href.substr(6);
}

function forceServer (a, b) {
 sos = [];
 forcing = true;
 bso = {};
 bso.ip = a;
 bso.po = b;
 bso.ac = 999;
 sos.push(bso);
}

var rmsos = [];
// rmsos.push( {a:[76,84,79, 445]} );

var wsu = 0;

var xhrqs = [];


function getDataHandler (xmlhttp) {
 var o = null;
 var cur_tm = Date.now();
 for (var i = xhrqs.length-1; i>=0; i--) {
  if (xhrqs[i].xmlhttp == xmlhttp) {
   o = xhrqs[i];
  } else if ((cur_tm - xhrqs[i].creation_tm) > 60000) { // clean up failed/hanged requests
   xhrqs.splice(i, 1);
  }
 }
 return o;
}


function removeDataHandler (xmlhttp) {
 var cur_tm = Date.now();
 for (var i = xhrqs.length-1; i>=0; i--) {
  if (xhrqs[i].xmlhttp == xmlhttp) {
   xhrqs.splice(i, 1); // remove the target handler
  } else if ((cur_tm - xhrqs[i].creation_tm) > 60000) {
   xhrqs.splice(i, 1); // clean up failed/hanged requests/handlers too, as long as we're here.
  }
 }
}


function getData (u, o) {
 var xmlhttp;
 
 if (window.XMLHttpRequest) {
  xmlhttp = new XMLHttpRequest();
 } else {
  xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
 };

 o.xmlhttp = xmlhttp;
 o.done = false;
 o.creation_tm = Date.now();
 xhrqs.push(o);
 
 xmlhttp.onreadystatechange = function () {
  var o = getDataHandler(this);
  if (o != null) {
   if (this.readyState == 4 ) {
    if (!o.done) {
     o.done = true;
     if (this.status == 200) {
      o.f(this.responseText, 'success', o);
     } else {
      o.f('', 'error', o);
     };
     removeDataHandler(this);
    };
   };
  };
 };
 
 xmlhttp.open('GET', u, true);
 xmlhttp.send();
};

$.getJSON( "/getservers?" + Math.random(), function( data ) {
	if ( sos.length < 1){
		sos = data
	}
});
</script>